package com.homework.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("homework_detail")
public class HomeworkDetail {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("homework_id")
    private Long homeworkId;

    @TableField("content")
    private String content;

    @TableField("sequence_order")
    private Integer sequenceOrder;

    @TableField("is_required")
    private Boolean isRequired;

    @TableField("is_completed")
    private Boolean isCompleted;

    @TableField("completed_time")
    private LocalDateTime completedTime;

    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
}